package com.example.mardan_demo1.mapper;

import com.example.mardan_demo1.pojo.FilePojo;
import com.example.mardan_demo1.pojo.file.Img;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface FileUploadMapper {

    @Insert("insert into files(name,path,type,size,createdDate) values(#{name}, #{path}, #{type} , #{size}, #{createdDate}) ")
    void add(FilePojo files);

    List<FilePojo> list(String name);

    Boolean uploadImg(Img img);
}